<?php
/**
 * Created by PhpStorm.
 * User: Rodger
 * Date: 2020/8/24
 * Time: 17:41
 */
namespace State;
class ConcreteAbstractStateB extends AbstractState
{
    public function Handle(Context $context)
    {
        echo "当前是状态 B.";
        $context->setState(new ConcreteAbstractStateA());
    }
}